<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta name="csrf-token" content="{{ csrf_token() }}">
    <title>后台管理系统</title>
    <link rel="stylesheet" href="/style/public.css">
    <link rel="stylesheet" href="/style/home.css">
    <link rel="stylesheet" href="/style1/rili.css">
    <link rel="stylesheet" href="/static/js/layer/skin/layer.css">
    {{--<script src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>--}}

    <script src="/js/jquery-1.8.3.min.js"></script>
    <script src="/js/laydate.dev.js"></script>
    <script src="/static/js/layer/layer.js"></script>
    <script>
        $.ajaxSetup({
            headers: {
                'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
            }
        });


    </script>
    @yield('css')
    <script>
        $(function(){

            {{--$('#zhuxiao').click(function(){--}}

                {{--layer.confirm('确定退出登录?',{btn:['确定','取消']},function(){--}}

                    {{--$(location).attr('href',"{{url('logOut')}}");  //jquery跳转--}}

                {{--},function(){--}}

                {{--});--}}
            {{--});--}}

            $('#zhuye').click(function(){

                layer.confirm('确定回到主页?',{btn:['确定','取消']},function(){

                    $(location).attr('href',"{{url('/')}}");  //jquery跳转

                },function(){

                });
            });


        });
    </script>
</head>
<body>
<div id="header">
    <div class="header_center">
        <div class="header_center_left" style="position: absolute;left: 0;">后台管理系统</div>
        <!--<div class="header_center_center">-->
        <!--<input type="text" placeholder="请输入搜索内容"/>-->
        <!--<p>搜索</p>-->
        <!--</div>-->
        <div class="header_center_right" style="position: absolute;right: 0;">
            <div class="userone" >
                <img src="/imgs/touxiang.jpg" alt=""/>
                <p>{{session('adminname')}}</p>
                <p class="p1" onclick="window.location.href='{{urlAdmin('Brand','getModifyPwd')}}'">修改密码</p>
            </div>
            <ul>
                <li><a href="{{url('/')}}" target="_blank"><img id='zhuye' src="/imgs/pic1.png" alt=""/></a></li>
                <li><a href="{{url('logOut')}}"><img id='zhuxiao' src="/imgs/pic3.png" alt=""/></a></li>
            </ul>
        </div>
    </div>
</div>
<div id="content">
    <div id="left">
        <ul>
            <li @if($flag=='index')class="active"@endif><a href="/center/brand/apply?status=0">审核管理</li>
            <li @if($flag=='brand')class="active"@endif><a href="/center/brand/">品牌管理</a></li>
            <li @if($flag=='category')class="active"@endif><a href="{{urlAdmin('category','getIndex')}}">分类管理</a></li>
            <li @if($flag=='announce')class="active"@endif><a href="/center/announce/">发布公告</a></li>
            <li @if($flag=='facdback')class="active"@endif><a href="/center/feedback/">意见反馈</a></li>
            <li @if($flag=='shu')class="active"@endif><a href="/center/getmoban">上传样板</a></li>
            <li @if($flag=='export')class="active"@endif><a href="{{urlAdmin('database','getIndex',['type'=>'export'])}}">数据备份</a></li>
            <li @if($flag=='import')class="active"@endif><a href="{{urlAdmin('database','getIndex',['type'=>'import'])}}">数据还原</a></li>
        </ul>
    </div>
    <div id="right">
        @yield('title')
        <div class="main">
              @yield('content')
        </div>
    </div>
</div>
</body>
</html>